package team.paimengshop.server_dataclass;

import java.util.ArrayList;

public class User
{
    private int id;
    private String userName;
    private String email;
    private String password;
    private String headImageURL;
    private ArrayList<Commodity> cart;
    private ArrayList<Commodity> collection;

    private String address;

    public User()
    {
        this.id = -1;
        this.userName = null;
        this.email = null;
        this.password = null;
        this.headImageURL = null;
        this.collection = null;
        this.cart = null;
        this.address = null;
    }

    public User(int id, String userName, String email, String password, String headImageURL, ArrayList<Commodity> cart, ArrayList<Commodity> collection, String address)
    {
        this.id = id;
        this.userName = userName;
        this.email = email;
        this.password = password;
        this.headImageURL = headImageURL;
        this.collection = collection;
        this.cart = cart;
        this.address = address;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setCart(ArrayList<Commodity> cart)
    {
        this.cart = cart;
    }

    public ArrayList<Commodity> getCart()
    {
        return cart;
    }

    public void setCollection(ArrayList<Commodity> collection)
    {
        this.collection = collection;
    }

    public ArrayList<Commodity> getCollection()
    {
        return collection;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }

    public void setHeadImageURL(String headImageURL)
    {
        this.headImageURL = headImageURL;
    }

    public String getHeadImageURL()
    {
        return headImageURL;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
}
